package utils;

import common.ListNode;

/**
 * Created on 2021/1/4 。
 *
 * @author wll 1978992154@qq.com
 */
public class MyUtil {

    public static void displayListNode(ListNode node){
        System.out.println("链表的值为:");
        while (node != null){
            System.out.print(node.val+" ");
            node = node.next;
        }
        System.out.println();
    }
}
